package megrez.mail.sender.component.template;

import java.util.Map;

import org.springframework.stereotype.Component;

import megrez.mail.sender.common.StringNamedFormatter;

/**
 * 文本模板处理.

 * @author Lucky Yang
 * @since 2.6.9
 */
@Component
public class TextTemplateProcess implements TemplateProcess {

    @Override
    public String render(String template, Map<String, Object> params) {
        return StringNamedFormatter.format(template, params);
    }
    
}
